package com.chen.authority.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 重置密码 数据传输对象
 *
 * @author chengy
 * @date 2022/11/19
 */
@Data
public class ResetPwdDto {

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty("邮箱")
    @Email(message = "邮箱格式有误")
    private String email;

    @ApiModelProperty("验证码")
    @NotBlank(message = "验证码不能为空")
    private String captcha;

    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPwd;

}
